#include<stdio.h>
#include<stdlib.h>
int main() {
    freopen("sort3.in","r",stdin);
    //freopen("sort3.out","w",stdout);
    int a,b,c,t;
    while(3==scanf("%d%d%d",&a,&b,&c)) {
        if(a>b){t=a;a=b;b=t;}
        if(b>c){t=b;b=c;c=t;}
        if(a>b){t=a;a=b;b=t;}
        printf("%d %d %d\n",a,b,c);
   }
    return 0;
}
